<%--
    Document   : examscan
    Created on : 2012-3-28, 10:26:41
    Author     : xiaoxiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<style type="text/css">
    p {font: bold 15px 宋体;}
    div{font-family: 宋体;font-size: 15px}
</style>
<%
            response.setContentType("application/doc");
            response.setHeader("Content-Disposition", "inline; filename=\"answer.doc\"");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>试卷浏览</title>
    </head>
    <body>
        <s:property value="%{exam.name}"></s:property>（答案）

        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        <% int i = 0;%>
        一、单选题
        <%  out.println("<br>");%>
        <s:iterator value="danxuan" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        二、 多选题
        <%  out.println("<br>");%>
        <%  i = 0;%>
        <s:iterator value="duoxuan" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        三、判断题
        <%  out.println("<br>");%>
        <% i = 0;%>
        <s:iterator value="judge" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        四、 主观题
        <%  out.println("<br>");%>
        <% i = 0;%>
        <s:iterator value="question" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.println("<br>");%>
            <%  out.println("<br>");%>
        </s:iterator>
    </body>
</html>
